package slxy.jiangtao.dts.entity.sys;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import slxy.jiangtao.dts.core.common.bean.BaseEntity;
import slxy.jiangtao.dts.core.common.bean.BaseId;
import slxy.jiangtao.dts.core.common.bean.Constants;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Code must be sexy
 * Created by JiangTao on 2017/1/12.
 */
@Entity
@Table(name = "depart")
@DynamicInsert
public class Depart extends BaseId {
    @Basic
    @Column(name = "name",nullable = false)
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Basic
    @Column(name = "parent_id")
    private Integer parentId;

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Basic
    @Column(name = "lv")
    private Integer lv;

    public Integer getLv() {
        return lv;
    }

    public void setLv(Integer lv) {
        this.lv = lv;
    }
}
